<?php $this->_extends('../_layouts/default_layout'); ?>
<?php $this->_block('contents'); ?>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/validator.js"></script>
<fieldset><legend>查询条件</legend>
<form method="get" action="">
<?include(Q::ini('custom_system/elements_dir') . 'searchform_element.php');?>
<table class="form_table">
<tbody>
<tr>
	<th>网站</th>
	<td>
		<select name="shop_id">
			<option value="53">iWowcase.com</option>
		</select>
	</td>
</tr>
<tr>
	<th>注册日期</th>
	<td colspan="3">
		<input type="text" value="<?=$bdate?>" name="bdate" class="datepicker" /> to
		<input type="text" value="<?=$edate?>" name="edate" class="datepicker" />
	</td>
</tr>
<tr>
	<td></td>
	<td><input type="submit" value="查询" class="button"></td>
</tr>
</tbody></table>
</form>
</fieldset>
 <table width="100%" class="list_table" >
        <tr>
            <th>日期</th>
			<th>星期</th>
            <th>注册量（总）</th>
			<th>注册量（来自eBay）</th>
        </tr>
        
        <?foreach ($dailyreg as $v):?>
        <tr>
        	<th><?=$v['date'];?></th>
			<td><?=$v['week'];?></td>
			<td><?=$v['reg_total'];?></td>
			<td><?=$v['reg_from_ebay'];?></td>
        </tr>
        <?endforeach;?>
</table>
<script type="text/javascript">$(".datepicker").datepicker({dateFormat:'yy-mm-dd',changeMonth:true});</script>
<?php $this->_endblock(); ?>